﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileSelect.aspx.cs" Inherits="TRPOP.CMS.Admin.FileSelect" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>模板在线编辑</title>
    <script src="../../js/utils.js" type="text/javascript"></script>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../js/FileSelect.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table id="page_navigator">
        <tr>
            <td class="align_l">
                当前位置：插件管理 -> 模板在线编辑
            </td>
        </tr>
    </table>
    <table class="table_search" cellpadding="0" cellspacing="2" width="100%" border="0">
        <tr>
            <td>
                当前目录: &nbsp;&nbsp; <span class="tip" id="CurrentFolder"></span>&nbsp;&nbsp;
            </td>
        </tr>
        <tr>
            <td>
                上传文件: &nbsp;&nbsp; <span>
                    <cms:FileUpload runat="server" ID="FileUpLoad" />&nbsp;&nbsp;
                    <cms:Button ID="BtnUpload" CssClass="button_style" OnClientClick="return confirm('确定在当前目录下上传文件吗?')"
                        Text="上传" runat="server" OnClick="BtnUpload_Click" /></span> <span class="tip">(你可以上传以下类型的文件:
                            文本文件、样式文件、图片文件)</span>
            </td>
        </tr>
        <tr>
            <td>
                当前文件:&nbsp;&nbsp; <span class="tip" id="CurrentSelect">当前尚未选中文件
                </span>&nbsp;&nbsp;<cms:LinkButton ID="btnDelFile" OnClientClick="return confirm('删除后将不能恢复,确定要删除该文件吗？');"
                    Text="删除该文件" runat="server" OnClick="btnDelFile_Click" />
                &nbsp;&nbsp;<cms:LinkButton ID="btnReGenerate" Text="重新生成模板" runat="server" OnClick="btnReGenerate_Click" />
            </td>
        </tr>
        <tr>
            <td>
                目录类型: &nbsp;&nbsp;
                <cms:DropDownList runat="server" ID="ddlRoot" DataTextField="Key" DataValueField="value">
                </cms:DropDownList>
                &nbsp;&nbsp;
                <input type="button" name="btuproot" class="button_style" id="btuproot" value="上级目录"
                    title="上级目录" />&nbsp;&nbsp;
                <cms:HiddenField ID="hidroottype" runat="server" />
                <cms:HiddenField ID="hidselpath" runat="server" />
                <cms:HiddenField ID="hidselFileName" runat="server" />
                <cms:HiddenField ID="hideSelecttype" runat="server" />
                <cms:HiddenField ID="hideSelectName" runat="server" />
            </td>
        </tr>
    </table>
    <table class="table_list">
        <tr class="tr_listitem">
            <td class="align_c" align="center">
                <iframe id="workFrame" name="workFrame" frameborder="0" style="border: 1px inset #dcdcdc;
                    width: 100%; height: 600px;" scrolling="auto"></iframe>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
